Skip to content

Conversation

bennnnnnnn
Copy link

Pull Request summary:

Making sure the verify parameter is correctly typed (it can also be a str as a path to a CA bundle), make sure it's passable to the ManagerSession and make sure it's actually respected in the requests method.

Description of changes:

This allows you to verify the certificate of your vmanage instance against a specific CA bundle (or certifi's trust store, by putting the flag to True). The parameter still defaults to False, so it's a non-breaking change.

Checklist:

  • [ *] Make sure to run pre-commit before committing changes
  • [ *] Make sure all checks have passed
  • [ *] PR description is clear and comprehensive
  • [ *] Mentioned the issue that this PR solves (if applicable)
  • [ *] Make sure you test the changes

@bennnnnnnn
Copy link
Author

This would solve #94

@sbasan
Copy link
Collaborator

sbasan commented Oct 13, 2025

@bennnnnnnn we still need to be compatible with python 3.8

verify: bool | str

I believe this will solve

from typing import Union
verify: Union[bool, str]

@bennnnnnnn
Copy link
Author

@bennnnnnnn we still need to be compatible with python 3.8

verify: bool | str

I believe this will solve

from typing import Union
verify: Union[bool, str]

Good point, I've changed this, should be OK now!

@sbasan
Copy link
Collaborator

sbasan commented Oct 14, 2025

@bennnnnnnn flake8 checker is failing - please use pre-commit for auto-formatting :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants